package com.game.server.util;

import com.game.majiang.logic.LogicClient;
import com.game.server.db.entity.XyClubInfo;
import com.game.server.message.proto.out.XYInformDataAlterRsp;

public class NoticeUtil {


    /**
     * 俱乐部 消息通知
     * @param client
     * @param clubInfo
     */
    public static void ClubNoticeNotice(LogicClient client, XyClubInfo clubInfo) {
        XYInformDataAlterRsp alterRsp = new XYInformDataAlterRsp();
        alterRsp.setType(7);
        alterRsp.setOperateclubid(client.getUserId());
        alterRsp.setClubid(clubInfo.getId());
        alterRsp.setUnionid(0);
        clubInfo.broadCastAdminPlayer(alterRsp);

        alterRsp.setType(6);
        clubInfo.broadCastAdminDtPlayer(alterRsp);
    }
}
